package com.github.appintro.internal;

import ohos.app.Context;
import ohos.global.configuration.Configuration;
import ohos.global.resource.ResourceManager;

public class LayoutUtil {
    public static final boolean isRtl(Context ctx) {
        boolean var2 = false;
        ResourceManager resourceManager = ctx.getResourceManager();
        Configuration configuration = resourceManager.getConfiguration();
        if (configuration.isLayoutRTL) {
            var2 = true;
        }
        return var2;
    }

    public static int allCount = 0;

    public static boolean isNext(int index) {
        boolean isNext = false;
        if (index < allCount - 1) {
            isNext = true;
        } else {
            isNext = false;
        }
        return isNext;
    }

    public static boolean isPre(int index) {
        boolean isPre = false;
        if (index == 0) {
            isPre = false;
        } else {
            isPre = true;
        }
        return isPre;
    }
}